package com.dream.fly.juststartservicefeign.controller;

import com.dream.fly.juststartservicefeign.rpc.ServiceHiRpcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xsh10810
 * Time 2018/4/28 14:32
 */
@RestController
public class HiController {

	@Autowired
	ServiceHiRpcService serviceHiRpcService;
	@RequestMapping(value = "/hi",method = RequestMethod.GET)
	public String sayHi(@RequestParam String name){
		return serviceHiRpcService.sayHiFromClientOne(name);
	}
}
